﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace restaurant.Pages
{
    public partial class Page2_DoctorDetails : PhoneApplicationPage
    {
        public Page2_DoctorDetails()
        {
            InitializeComponent();
        }
        dbFunctions dbfunctions = new dbFunctions();
        private void Submit_Click(object sender, RoutedEventArgs e)
        {
            dbfunctions.insert_into_doctor(1, DrFNameBox.Text, DrLname.Text, DrOfficename.Text, DrEmailBox.Text, int.Parse(DrPhoneBox.Text), DrRoleBox.Text);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}